<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./css/1.css">
    <script src='./js/jquery.js'></script>
</head>
<body>
<?php
$conn = mysqli_connect('localhost','root','root','mingleibiao');
$arr = "select * from new_manager";
$res1= mysqli_query($conn,$arr);

while($arr2=mysqli_fetch_assoc($res1)){
    $res2[]=$arr2;
};
?>
<table border='3'>
<thead>
<tr>
<th>新闻ID</th>
<th>标题</th>
<th>发布时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<?php
foreach($res2 as $key=>$val){?>
    <tr>
    <td><?php echo $val['id']?></td>
    <td><?php echo $val['title']?></td>
    <td><?php echo $val['time']?></td>
    <td>
        <a href="#"><?php echo $val['change']?></a>
        &nbsp;
        <a href="./other/queren.php?id=<?php echo $val['id']?>"><?php echo $val['delete']?></a>
    </td>
    </tr>
<?php
}
?>

</tbody>
</table>

</script>
</body>
</html>
